package com.woniu.system.pojo;



import com.woniu.components.DAO.IEntity;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * SysDictionary entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "SYS_DICTIONARY", schema = "SN_WONIU", uniqueConstraints = {})
public class SysDictionary implements IEntity {

	// Fields

	private SysDictionaryId id;
	private String SValue;
	private Long NOrder;
	private String SState;
	private String SDesc;

	// Constructors

	/** default constructor */
	public SysDictionary() {
	}

	/** minimal constructor */
	public SysDictionary(SysDictionaryId id, String SValue, Long NOrder,
			String SState) {
		this.id = id;
		this.SValue = SValue;
		this.NOrder = NOrder;
		this.SState = SState;
	}

	/** full constructor */
	public SysDictionary(SysDictionaryId id, String SValue, Long NOrder,
			String SState, String SDesc) {
		this.id = id;
		this.SValue = SValue;
		this.NOrder = NOrder;
		this.SState = SState;
		this.SDesc = SDesc;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides( {
			@AttributeOverride(name = "NTypeId", column = @Column(name = "N_TYPE_ID", unique = false, nullable = false, insertable = true, updatable = true, precision = 22, scale = 0)),
			@AttributeOverride(name = "SCode", column = @Column(name = "S_CODE", unique = false, nullable = false, insertable = true, updatable = true, length = 20)) })
	public SysDictionaryId getId() {
		return this.id;
	}

	public void setId(SysDictionaryId id) {
		this.id = id;
	}

	@Column(name = "S_VALUE", unique = false, nullable = false, insertable = true, updatable = true, length = 50)
	public String getSValue() {
		return this.SValue;
	}

	public void setSValue(String SValue) {
		this.SValue = SValue;
	}

	@Column(name = "N_ORDER", unique = false, nullable = false, insertable = true, updatable = true, precision = 22, scale = 0)
	public Long getNOrder() {
		return this.NOrder;
	}

	public void setNOrder(Long NOrder) {
		this.NOrder = NOrder;
	}

	@Column(name = "S_STATE", unique = false, nullable = false, insertable = true, updatable = true, length = 1)
	public String getSState() {
		return this.SState;
	}

	public void setSState(String SState) {
		this.SState = SState;
	}

	@Column(name = "S_DESC", unique = false, nullable = true, insertable = true, updatable = true)
	public String getSDesc() {
		return this.SDesc;
	}

	public void setSDesc(String SDesc) {
		this.SDesc = SDesc;
	}

}